
var phonecatApp = angular.module('phonecatApp',['ngRoute']);

phonecatApp.config(function($routeProvider){
      $routeProvider
          .when('/',{
                templateUrl: 'home.html'
          })
          .when('/shop',{
                templateUrl: 'shop.html'
          })
		  .when('/contact',{
                templateUrl: 'contact-us.html'
          })
		  .when('/account',{
                templateUrl: 'login.html'
          })
		  .when('/checkout',{
                templateUrl: 'checkout.html'
          })
		  .when('/cart',{
                templateUrl: 'cart.html'
          })
		  .when('/login',{
                templateUrl: 'login.html'
          });
});
phonecatApp.controller('cfgController',function($scope){

 $scope.phones = [
    {'name': 'Home', 'hrefName': '#/'},
    {'name': 'Shop', 'hrefName': '#/shop'},
    {'name': 'Contact', 'hrefName': '#/contact'}
  ];
});

phonecatApp.controller('topMenuCtrl',function($scope){

 $scope.topMenus = [
    {'name': 'Account', 'hrefName': '#/', 'cssClass':'fa fa-user'},
    {'name': 'Wishlist', 'hrefName': '#/shop', 'cssClass':'fa fa-star'},
    {'name': 'Checkout', 'hrefName': '#/checkout', 'cssClass':'fa fa-crosshairs'},
	{'name': 'Cart', 'hrefName': '#/cart', 'cssClass':'fa fa-shopping-cart'},
	{'name': 'Login', 'hrefName': '#/login', 'cssClass':'fa fa-lock'}
  ];
});
phonecatApp.controller('ProductListCtrl', function ($scope) {
  $scope.products = [
    {'name': 'Skirt', 'price': '35$','image': 'product1'},
	{'name': 'Jena', 'price': '45$','image': 'product2'},
	{'name': 'Shirt', 'price': '35$','image': 'product3'},
	{'name': 'Sarie', 'price': '30$','image': 'product4'},
	{'name': 'T-Shirt', 'price': '35$','image': 'product5'},
  ];
});


phonecatApp.controller('FeaListCtrl', function ($scope) {
  $scope.features = [
    {'name': 'Skirt', 'price': '35$','image': 'recommend1'},
	{'name': 'Jena', 'price': '45$','image': 'recommend2'},
	{'name': 'Shirt', 'price': '35$','image': 'recommend3'},
	{'name': 'Sarie', 'price': '30$','image': 'recommend4'},
	{'name': 'T-Shirt', 'price': '35$','image': 'recommend5'},
  ];
});